#!/bin/sh

ver_old=$2

if [ "$(apk version -t "$ver_old" '15.0.7-r1')" = '<' ]; then
	# in 15.0.7-r1 we flipped the symlink/target dirs for include/cmake
	# so we have to delete the symlink to allow apk to replace them..
	# and only after an apk fix :/

	# include
	rm /usr/lib/llvm15/include

	# cmake
	rm /usr/lib/llvm15/lib/cmake/llvm
fi

exit 0
